package net.csdn.business.common.domain.request.issue;

import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName: IssueBatchCloseDTO
 * @Description: 云效issue批量关闭DTO
 * @Author: zhangyl
 * @Date: 2024/8/5 14:57
 */
@Data
public class IssueBatchCloseDTO implements Serializable {
    /**
     * path 获取
     */
    @NotNull(message = "issueIds不能为空 ")
    private List<String> issueIds;

    @NotBlank(message = "uid 不能为空")
    @Length(min = 24, max = 24, message = "uid 不合法")
    private String uid;

    @NotNull(message = "mergeRequestIid 不能为空")
    @Positive(message = "mergeRequestIid 不合法")
    private Long mergeRequestIid;


    /**
     * path 获取
     */
    @NotNull(message = "projectId 不能为空 ")
    @Positive(message = "projectId 不合法")
    private Long projectId;
}